package com.devbobcorn.nekorization.client.rendering;

import com.devbobcorn.nekorization.client.model.NekoModel;
import com.devbobcorn.nekorization.entities.NekoEntity;

import net.minecraft.client.renderer.entity.RenderLayerParent;
import net.minecraft.client.renderer.entity.layers.RenderLayer;

public abstract class NekoAbstractLayer extends RenderLayer<NekoEntity, NekoModel<NekoEntity>> {
    protected final NekoModel<NekoEntity> nekoModel;

    public NekoAbstractLayer(RenderLayerParent<NekoEntity, NekoModel<NekoEntity>> renderer, NekoModel<NekoEntity> model) {
        super(renderer);
        nekoModel = model;
    }

    protected void setHairVisible() {
        nekoModel.setAllVisible(false);
        nekoModel.head.visible = true;
        nekoModel.hat.visible = true;
        nekoModel.tail1.visible = true;
        nekoModel.tail2.visible = true;
    }

    protected void setShirtVisible() {
        nekoModel.setAllVisible(false);
        nekoModel.body.visible = true;
        nekoModel.leftArm.visible = true;
        nekoModel.rightArm.visible = true;
    }

    protected void setSkirtVisible() {
        nekoModel.setAllVisible(false);
        nekoModel.body.visible = true;
        nekoModel.leftLeg.visible = true;
        nekoModel.rightLeg.visible = true;
    }
}
